package com.ptp.backendcertms.api.internal.constant;

import org.apache.commons.lang3.StringUtils;

/**
 * 系统固定常量值
 */
public class CertMsConstant {


    /**
     * 非HIS
     */
    public static final int NONE_HIS = 1;

    /**
     * HIS
     */
    public static final int HIS = 4;

    /**
     * 默认档案编号前缀
     */
    public static final String ARCHIVES_PREFIX = "MB-";
    /**
     * 默认系统用户
     */
    public static final String DEFAULT_USER = "system";
    /**
     * 三方Token
     */
    public static final String PARAM_OTHER_TOKEN = "otherToken";
    /**
     * 终端类型
     */
    public static final String TERMINAL_TYPE = "terminalType";
    /**
     * 自定义微信客户端id
     */
    public static final String WX_CLIENT_ID = "wxClientId";
    /**
     * 自定义外部渠道号
     */
    public static final String PARAM_OUTER_CHANNEL = "outerChannel";
    /**
     * 自定义外部居民唯一标识
     */
    public static final String PARAM_CARD_NO = "cardNo";
    /**
     * 默认C端Token有效时长（天数）
     */
    public static final int C_TOKEN_DAYS = 7;
    /**
     * 批次枚举id前缀
     */
    public static final String BATCH_ID = "BATCH_ID_";
    /**
     * 分隔符
     */
    public static final String TASK_NAME_SPLIT = "_";
    /**
     * SQL语句 limit
     */
    public static final String SQL_LIMIT = " limit ";
    /**
     * 选中标志
     */
    public static final String CHOOSE_FLAG = "1";
    /**
     * 初始Map容量
     */
    public static final int INITIAL_MAP_CAPACITY = 16;
    /**
     * 身份证号码长度
     */
    public static final int CARD_NUM = 18;
    /**
     * 身份证证件类型
     */
    public static final String ID_CERT_TYPE = "1";
    /**
     * 根据身份证获取年龄关键字
     */
    public static final String AGE = "age";
    /**
     * 根据身份证获取性别关键字
     */
    public static final String SEX = "sex";
    /**
     * 根据身份证获取性别描述关键字
     */
    public static final String SEX_DESC = "sexDesc";
    /**
     * 无匹配APP账号默认值
     */
    public static final String DEFAULT_NO_APP_USER_ID = "-1";

    public static final String CHINESE_COMMA_SEPARATOR = "，";
    public static final String ENGLISH_COMMA_SEPARATOR = ",";
    public static final String ENGLISH_COMMA_POINT = ".";
    public static final String CHINESE_SEMICOLON_SEPARATOR = "：";
    public static final String ENGLISH_COLON = ":";
    public static final String CHINESE_SEMICOLON = "；";
    public static final String ENGLISH_SEMICOLON = ";";
    public static final String CAESURA_SIGN = "、";
    public static final String PERCENTAGE_SIGN = "%";

    public static final String PATTERN_ALL = "*";
    public static final String AT_SEPARATOR = "@";
    public static final String SLASH = "/";
    public static final String BACKSLASH = "\\";
    public static final String QUOTE  = "\"";
    public static final String SHORT_HYPHEN = "-";

    public static final String TEX_SPACE = "\\quad ";

    public static final String PARAM_TASK_FOLLOW_CAUSE = "taskFollowCause";
    public static final String FOLLOW_RESULT_REFUSE = "refuse";
    public static final String FOLLOW_RESULT_SUCCESS = "success";

    public static final String AND = "and";

    public static final String OR = "or";

    public static final String UNKNOWN = "unknown";

    /**
     * 人工建档
     */
    public static final String MANAUL = "manaul";
    /**
     * 自动建档
     */
    public static final String AUTO = "auto";
    /**
     * 已故
     */
    public static final String FOLLOW_RESULT_DECEASED = "deceased";
    /**
     * 已迁出
     */
    public static final String FOLLOW_RESULT_MOVED_OUT = "movedOut";

    /**
     * 默认业务日日期间隔
     */
    public static final Integer BUSINESS_DATE_INTERVAL_DAYS = 15;

    /**
     * 本地缓存上限
     * 快达到上限时根据配置释放对象
     */
    public static final int LOCAL_CACHE_SIZE = 1000;

    /**
     * 本地缓存过期时间
     * 10分钟后过期
     */
    public static final int LOCAL_CACHE_DURATION_TIME = 10 * 60;

    /**
     * 模板相关（数据map中的key）
     */
    public static final String TEMPLATE_CONTENT = "templateContent";
    public static final String TEMPLATE_CONTENT_LIST = "templateContentList";
    public static final String TEMPLATE_FILE_NO = "templateFileNo";
    public static final String INTERVENTION_CONTENT_LIST = "interventionContentList";
    /**
     * 文件内容同一行的分割符号
     */
    public static final String CONTENT_CHAR = "&&";
    public static final String CONTENT_LIST_SPLICING_CHAR = "||";
    public static final String CONTENT_LIST_SPLIT_CHAR = "\\|\\|";

    public static final String CONTENT_DETAIL_CHAR = "&";
    public static final String CONTENT_DETAIL_LIST_SPLICING_CHAR = "|";
    public static final String CONTENT_DETAIL_LIST_SPLIT_CHAR = "\\|";
    public static final String CONTENT_INFO_CHAR = "@";
    public static final String CONTENT_INFO_LIST_CHAR = "#";
    public static final String OCR_RESULT_SPLICING_CHAR = "<*$*>";
    public static final String OCR_RESULT_SPLIT_CHAR = "<\\*\\$\\*>";
    /**
     * 换行
     */
    public static final String LINE_SEPARATOR = System.lineSeparator();

    public static final String EXCLUDED_URLS = "excludedUrls";
    public static final String INCLUDED_URLS = "includedUrls";
    public static final String UN_CHECK_URLS = "unCheckUrls";
    public static final String UN_CHECK_SETTING_URLS = "unCheckSettingUrls";
    public static final String FUZZY_MATCHING_SYMBOL = "/*";
    public static final String WHERE = " where";
    public static final String BETWEEN = "between";
    public static final String IN = "in";
    public static final String EMPTY = " ";
    public static final String AS = "as";
    public static final String MASTER = "master";
    public static final String ID = "id";
    public static final String SELECT = "select ";
    public static final String FROM = " from";
    public static final String MIN = "min";
    public static final String MAX = "max";
    public static final String START_ID = "startId";
    public static final String END_ID = "endId";
    public static final String STANDARD_DATA = "standardData";
    /**
     * 中文-小括号
     */
    public static final String CHINESE_LEFT_PARENTHESES = "（";
    public static final String CHINESE_RIGHT_PARENTHESES = "）";
    /**
     * 英文-小括号
     */
    public static final String ENGLISH_LEFT_PARENTHESES = "(";
    public static final String ENGLISH_RIGHT_PARENTHESES = ")";

}
